import type { codeOrdeType } from '@/types/pagesBreakfast'
import { http } from '@/utils/http'
/**
 * * 获取企业二维码订单 接口
 */
export const getCodeOrdersApi = (orderSn: string) => {
  return http<any>({
    method: 'GET',
    url: `/client/order/getEnterpriseOrder/${orderSn}`,
  })
}

/**
 * * 企业二维码领取订单 接口
 */
export const postCodeOrderApi = (data: codeOrdeType) => {
  return http<any>({
    method: 'POST',
    url: `/client/order/enterprise`,
    data,
  })
}
